package com.dgut.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("dailyform")
public class DailyForm {

    @TableId(type= IdType.AUTO)
    private Integer formId;                 //表单id,主键
    private Integer accountId;              //账号id,外键
    private String physicalCondition;       //身体状况
    private String toEpidemicArea;          //是否到达或途径疫情防控重点地区
    private String areaLocation;            //曾途径疫区地点
    private Date areaLeaveTime;             //最后离开途径疫区的时间
    private String contactPerson;           //是否接触过疫区人员
    private Date personLastTime;            //接触的最后时间
    private String contactSuspectedCase;    //是否有接触过疑似病例
    private Date caseLastTime;              //接触病例的最后时间
    private String isMedicalObservation;    //是否在莞隔离医学观察
    private Date terminationObservationTime;//预计终止医学隔离观察时间
    private String inGuan;                  //目前是否在莞
    private String guanTownStreet;          //在莞时，目前所在镇街
    private String provinceCity;            //不在莞，目前所在地址（省/市/区）
    private Date backGuanTime;              //计划返莞日期
    private String backGuanTransportation;  //返莞交通工具
    private String backRouteTime;           //返莞交通工具具体行程、时间
    private String isLeaveGuan;             //否有离莞出行的行动
    private String leaveTimePlace;          //离莞具体出行时间和地点
    private String isMidpoint;              //是否为重点人群
    private String familyCondition;         //同住的家庭成员情况
    private String wentCity;                //曾去过以下城市
    private String remark;                  //备注
    private String temperature;             //今日体温
    private Integer fillingDays;            //填报天数
    private Date createTime;                //创建时间
    private Date updateTime;                //更新时间
    @TableLogic
    private Integer deleted=0;              //是否删除
}
